home *** CD-ROM | disk | FTP | other *** search
- Path: hgmp.mrc.ac.uk!news
- From: Mark Bradburn <m-bradbu@nimr.mrc.ac.uk>
- Newsgroups: comp.lang.c++
- Subject: Simple program-but not for me!!HELP.
- Date: 9 Jan 1996 17:45:26 GMT
- Organization: Medical Research Council
- Message-ID: <4cu9jm$s8h@mercury.hgmp.mrc.ac.uk>
- NNTP-Posting-Host: lysine.nimr.mrc.ac.uk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; IRIX 5.3 IP22)
- X-URL: news:comp.lang.c++
-
- I have an output file from a program that comes in the form:-
-
- 'Sequence = name1, Structure = name2, SCORE = xxx.xx
- " name2 " othername1, "
- " othername1 " othername2, "
- etc.'
-
- What i need to do is extract the scores values from each line,sort them
- according to (name
- with name,name with othername,othername with othername) then write the
- sum,mean and sd for each to seperate files.How is the easiest way to do
- this,bearing in mind i am just about competent with while (if) and other loop
- commands and am virtually lost with 'for' statements.
-
- Thanks in advance for any help..
-
- -Mark
- --
- --------------------------------------------------------------------------------
- Mark Bradburn, Mathematical Biology, N.I.M.R ,London UK NW7 1AA
- http://www.nimr.mrc.ac.uk/~m-bradbu || 'talk m-bradbu@iris4.nimr.mrc.ac.uk'
- E-mail: m-bradbu@nimr.mrc.ac.uk || Phone: 0181 9593666 ext.2396
-
-